
/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"32C5ECE7-7173-4785-8CF9-B8105ADBBCA0"}
 */
function onShow(firstShow, event) {
	databaseManager.setAutoSave(false)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"066ADCFB-130D-4A72-839D-CDC0019816D9"}
 */
function salvar_datos(event) {
	if (_super.salvar_datos('modificacion'))
	{
		var $win = application.getWindow('CTACTE_MODIF')
		$win.hide()
		$win.destroy()
	}
	return 
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"4F52604D-49B2-481C-BC68-BBC453689917"}
 */
function cancelar(event) {
	_super.cancelar()
	var $win = application.getWindow('CTACTE_MODIF')
	$win.hide()
	$win.destroy()
}
